/*ONLINE RESTAURANT AUTOMATION SYSTEM PROJECT */ #include #include #include #include//includes the c standard library here we used it for colour using namespace std; void show();//function to display our system name void aboutUs();//function to display about the group members class customer//class for handling customer related issues { public: void info();//function to register the customer void display();//function to display customer information void menu();//function to view menu void services();//function to view available service from the restaurant void modify();//function to modify customer information void feedback();//function to receive customer feedback private: char name[20]; char password[20]; int accNo; char location[50]; char email[30]; char hNo[23]; char day[10]; char time[10]; char month[15]; int year; char feed[100]; }; class Restaurant{ private: char w_name[25],c_name[25]; string w_password,c_password; public: void waiter();//function to display waiter information at restaurant ONLY FOR WAITERS void cheif();//function to display chef information ONLY FOR CHEFS void help();//function to get help }; void customer::info() { cout<<"please enter your name : "; cin>>name; cout<<"please enter your password : "; cin>>password; cout<<"please enter your account number : "; cin>>accNo; cout<<"please enter your email Or Phone Number: "; cin>>email; cout<<"PLease Enter Your House Number :"; cin>>hNo; cout<<"Please Enter The Day,month,year,Time, :"<>day; cout<<"Month :"; cin>>month; cout<<"Year :"; cin>>year; cout<<"Time :"; cin>>time; cout<<"Congratulation!!! You Have Successfully Registered! : "<>choise; if(choise==1) { cout<<"\t===> Availanle Foods <===\n"; cout<<"\tno. food type birr(ETB)\n"; cout<<"\t1. Ayinet 15.00 \n"; cout<<"\t2. DoroWet 35.50 \n"; cout<<"\t3. Atikilt 15.00 \n"; cout<<"\t4. Pasta Batikilt 15.00 \n"; cout<<"\t5. KeyWet 25.00 \n"; cout<<"\t6. Tibs 33.50 \n"; cout<<"\t7. Dinch Besiga 25.00 \n\n\n"; cout<<"Please Enter The Food You want :"; cin>>food; cout<<"Thank You The Food Youn Ordered will be Soon Arived To Your Home \n\n\n"; } else if(choise==2) { cout<<"\t===> Available soft drinks <===\n"; cout<<"\tno. drink type Birr(ETB)\n"; cout<<"\t1. Cocacola 10.00 \n"; cout<<"\t2. Mirinda 10.00 \n"; cout<<"\t3. Pepsi 10.00 \n"; cout<<"\t4. Fanta 10.00 \n"; cout<<"\t5. Sprite 10.00 \n"; cout<<"\t6. Sofi Malt 12.00 \n"; cout<<"\t7. 7up 10.00 \n"; cout<<"OPlease The drink You Want : "; cin>>drink; cout<<"Thank You The Drink You Ordered will be Soon Arrived To Your Home\n\n\n"; } else if(choise==3) { cout<<"===> Availanle Foods <===\n"; cout<<"\tno. food type birr(ETB)\n"; cout<<"\t1. Ayinet 15.00 \n"; cout<<"\t2. DoroWet 35.50 \n"; cout<<"\t3. Atikilt 15.00 \n"; cout<<"\t4. Pasta Batikilt 15.00 \n"; cout<<"\t5. KeyWet 25.00 \n"; cout<<"\t6. Tibs 33.50 \n"; cout<<"\t7. Dinch Besiga 25.00 \n\n\n"; cout<<"\t===> Available soft drinks <===\n"; cout<<"\tno. drink type Birr(ETB)\n"; cout<<"\t1. Cocacola 10.00 \n"; cout<<"\t2. Mirinda 10.00 \n"; cout<<"\t3. Pepsi 10.00 \n"; cout<<"\t4. Fanta 10.00 \n"; cout<<"\t5. Sprite 10.00 \n"; cout<<"\t6. Sofi Malt 12.00 \n"; cout<<"\t7. 7up 10.00 \n"; cout<<"Please Enter The Food You Want :"; cin>>food; cout<>drink; cout<<"Thank You Your Order Will Be Arrived Soon At Your Location!!! \n\n\n"; } else { cout<<"PLease Enter THe Correct Choice"<>choise; } } void customer::modify() { char passWord[20]; char you; cout<>passWord; if(strcmp(password,passWord)==0) { cout<<"Enter The New Information of you:"<>passWord; if(strcmp(password,passWord)==0) { info(); } } else { cout<<"Password incorrect!!!"; } } void customer::feedback() { cout<<"Please Give Your FeedBack :\t"<>feed; cout<<"Thank You for your FeedBack!!!!!"<>w_name; cout<<"PLease Enter Your Password : "; cin>>w_password; if(w_password=="ABCD12")//this password was given to the waiters at first { cout<<"This Is Your Work Shift And You Have To Be Punctual!"<>w_password; if(w_password=="ABCD12") { cout<<"This Is Your Work Shift And You Have To Be Punctual!"<>c_name; cout<<"please Enter your password:"<>c_password; if(c_password=="AB21")//this password was given to the chef at first { cout<<"THIS IS YOUR SHIFT:"<>c_password; if(c_password=="AB21") { cout<<"THIS IS YOUR SHIFT:"<>choice; cout<<"\n\n"; if(choice=='E') { cout<<"Good Bye!!!"<>press; } while(press!='n'&&press!='N'); } void aboutUs() { cout<<"This System Is Developed By The By The Following Students Of Arba Minch University!!"<